package team.shuguoyiyou.authcode.authcode.service.impl;//package team.shuguoyiyou.authcode.authcode.service.impl;//package team.shuguoyiyou.authcode.authcode.service.impl;
//
//import team.shuguoyiyou.authcode.authcode.model.common.ResponseModel;
//import team.shuguoyiyou.authcode.authcode.model.vo.CaptchaVO;
//import team.shuguoyiyou.authcode.authcode.service.CaptchaService;
//import team.shuguoyiyou.authcode.authcode.service.ISlidingCodeService;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.security.oauth2.common.exceptions.InvalidGrantException;
//import org.springframework.stereotype.Service;
//
//@Slf4j
//@Service
//public class SlidingCodeService implements ISlidingCodeService {
//    @Autowired
//    private CaptchaService captchaService;
//    @Override
//    public void sliding(String captchaVerification){
//        CaptchaVO captchaVO = new CaptchaVO();
//        captchaVO.setCaptchaVerification(captchaVerification);
//        System.out.println("captchaVo:"+captchaVO);
//        ResponseModel response = captchaService.verification(captchaVO);
//        if(!response.getRepCode().equals("0000")){
//            throw new InvalidGrantException("滑块验证错误：");
//        }
//        System.out.println("sliding:");
//    }
//}
